﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="signin.aspx.cs" Inherits="LMSemir.Backstage.signin" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>森马TEE后台管理系统v1.0</title>
    <!--                       CSS                       -->
    <!-- Reset Stylesheet -->
    <link rel="stylesheet" href="css/reset.css" type="text/css" media="screen" />
    <!-- Main Stylesheet -->
    <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />
    <!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
    <link rel="stylesheet" href="css/invalid.css" type="text/css" media="screen" />
</head>
<body id="login">
    <div id="login-wrapper" class="png_bg">
        <div id="login-top">
            <h1>
                森马TEE后台管理系统</h1>
            <!-- Logo (221px width) -->
            <a href="#">
                <img id="logo" src="images/logo.png" alt="后台管理系统登录" /></a>
        </div>
        <!-- End #logn-top -->
        <div id="login-content">
            <form action="" id="form1" method="post">
            <div class="notification information png_bg">
                <div>
                    立刻登录,管理您的数据！
                </div>
            </div>
            <p>
                <label>
                    用户名：</label>
                <input class="text-input" name="username" id="username" type="text" value="" />
            </p>
            <div class="clear">
            </div>
            <p>
                <label>
                    密&nbsp;&nbsp;&nbsp;码：</label>
                <input class="text-input" type="password" name="pwd" id="pwd" value="" />
            </p>
            <div class="clear">
            </div>
            <p id="remember-password">
                <input class="button" type="submit" id="btn_submit" value="登录系统" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input type="checkbox" id="rememberMe" value="" />
                下次登录记住我
            </p>
            <div class="clear">
            </div>
            <p>
            </p>
            </form>
        </div>
        <!-- End #login-content -->
    </div>
    <script type="text/javascript" src="Scripts/jquery-1.4.1.min.js"></script>
    <script type="text/javascript" src="Scripts/facebox.js"></script>
    <script type="text/javascript" src="Scripts/lmsemir.common.js"></script>
    <script type="text/javascript">
        if (getCookie('rememberMe') == '1') {
            window.location.href = 'admin.aspx';
        }
        $('form').submit(function () {
            if ($('#username').val() == "" || $('#pwd').val() == "") {
                alert('请您填写登录账号或密码!');
                return false;
            }
            else {
                return true;
            }
        });
        $('#rememberMe').click(function () {
            setCookie('rememberMe', '1');
            setCookie('username', $('#username').val());
            setCookie('pwd', $('#pwd').val());
        });
    </script>
</body>
</html>
